<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>人事档案修改</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="qiang/zgq/js/jquery-1.8.3.js"></script>

<link rel="stylesheet" href="qiang/zgq/css/cal.css"  type="text/css" />
<script src="qiang/zgq/js/cal.js" type="text/javascript" charset="gbk"></script>
<script type="text/javascript">
	$(function(){
		$("[type='button']:first").click(function(){
			$("#gx").val(1);
			$("form").submit();
		});
		$("[type='button']:last").click(function(){
			window.location.href="findRenShiDengJiBycondition";
		});
		$("#del").click(function(){
			$("a").hide();
		});
	});
</script>
<style type="text/css">
	#tabke_1 td{font-size: 14px;}
</style>
  </head>
  
  <body>
	<div id=all
		style="width:1050px ;height: 2000px;background-color: #C9C9C9;margin: 0 auto;position:relative;top:30px;">
		<div id="header"
			style="width: 1030px; height:100px;position:absolute;left: 10px;top:0px;background-color:white;">
			<%@ include file="header.jsp"%>
		</div>
		<div id="left"
			style="height: 1000px;width: 200px; position:absolute;left: 10px;top:100px;background-color:white;">
			<%@ include file="left_ren.jsp"%>
		</div>
		<div id="right"
			style="height: 1000px;width: 810px;position:absolute;left: 230px;top:100px;
			background-color:#F4F4F4;">
			<div id="h11" style="width:782px;">
			
				<div>
                    <form action="updateDangAn" method="post" enctype="multipart/form-data">
                        <table id="tabke_1">
                           <tr>
                               <td class="td1" style="width: 100px;">档案编码：</td>
                               <td>
                               		<input type="hidden" name="gx" id="gx" value="0"/>
                               		<input type="text" value="${renshidengji.danganbianma}" name="renshidengji.danganbianma" size="20px">
                               		<input type="hidden" value="${renshidengji.id}" name="renshidengji.id" size="20px">
                               		<input type="hidden" value="${renshidengji.changetype}" name="renshidengji.changetype" size="20px">
                               		<input type="hidden" value="${renshidengji.fujian}" name="renshidengji.fujian" size="20px">
                               		<input type="hidden" value="${renshidengji.zhaopian}" name="renshidengji.zhaopian" size="20px">
                               		<input type="hidden" value="${renshidengji.caozuozhuangtai}" name="renshidengji.caozuozhuangtai" size="20px">
                               		<input type="hidden" value="${renshidengji.photoname}" name="renshidengji.photoname" size="20px">
                               		<input type="hidden" value="${renshidengji.wordname}" name="renshidengji.wordname" size="20px">
                               		<%-- <input type="hidden" value="${renshidengji.id}" name="renshidengji.id" size="20px">
                               		<input type="hidden" value="${renshidengji.id}" name="renshidengji.id" size="20px">
                               		<input type="hidden" value="${renshidengji.id}" name="renshidengji.id" size="20px">
                               		<input type="hidden" value="${renshidengji.id}" name="renshidengji.id" size="20px"> --%>
                               	</td>
                               <td style="width: 100px;">档案状态：</td>
                               <td><select name="renshidengji.danganzhaungtai">
                                	<option value="0">--请选择--</option>
                                    <option <c:if test="${renshidengji.danganzhaungtai==1}">selected</c:if> value="1">试用期</option>
                                    <option <c:if test="${renshidengji.danganzhaungtai==2}">selected</c:if> value="2">正式员工</option>
                                    <option <c:if test="${renshidengji.danganzhaungtai==3}">selected</c:if> value="3">离职</option>
                                    <option <c:if test="${renshidengji.danganzhaungtai==4}">selected</c:if> value="4">已删除</option>
                                    <option <c:if test="${renshidengji.danganzhaungtai==5}">selected</c:if> value="5">实习员工</option>
                                </select>
                                </td>
                               <td colspan="2" rowspan="6" >
                               	<img style="width:200px;height: 200px; " alt="" src="${renshidengji.zhaopian}"/> 
                               	<input type="file" name="pic">
                               </td>
                           </tr>
                           <tr>
                               <td class="td1">所属部门：</td>
                               <td><select  name="deptId" style="width: 188px;height: 25px;text-align: center;">
										<option value="0">--请选择--</option>
										<c:forEach items="${listDepts}" var="i">
											<option <c:if test="${i.id==deptId}">selected</c:if> value="${i.id}">${i.dname}</option>
										</c:forEach>
								</select></td>
                               <!-- <td>职位编码：</td>
                               <td><input type="text" name="renshidengji." size="20px"></td> -->
                           </tr>
                           <tr>
                               <td class="td1">职位名称：</td>
                               <td>
                               		<select  name="zhiWeiId" style="width: 188px;height: 25px;text-align: center;">
											<option value="0">--请选择--</option>
											<c:forEach items="${lisZhiweibiaos}" var="i">
												<option <c:if test="${i.id==zhiWeiId}">selected</c:if> value="${i.id}">${i.name}</option>
											</c:forEach>
									</select>
                               </td>
                               <td>性别：</td>
                               <td>
                                    <select name="renshidengji.sex">
	                                     <option <c:if test="${renshidengji.sex=='男'}">selected</c:if> value="男">男</option>
	                                     <option <c:if test="${renshidengji.sex=='女'}">selected</c:if> value="女">女</option>
	                               </select>
                               </td>
                           </tr>
                           <tr>
                               <td class="td1">姓名：</td>
                               <td><input type="text" value="${renshidengji.name}" name="renshidengji.name" size="20px"></td>
                               <td>联系电话：</td>
                               <td><input type="text" value="${renshidengji.telephone}" name="renshidengji.telephone" size="10px"></td>
                           </tr>
                           <tr>
                               <td class="td1">EMAL:</td>
                               <td><input type="text" value="${renshidengji.email}" name="renshidengji.email" size="10px"></td>
                               <td></td>
                               <td></td>
                           </tr>
                           <tr>
                               <td class="td1">住址：</td>
                               <td colspan="3"><input value="${renshidengji.address}" name="renshidengji.address" type="text" size="55px"></td>
                               
                           </tr>
                           <tr>
                               <td class="td1">身份证号：</td>
                               <td><input type="text" value="${renshidengji.idcard}" name="renshidengji.idcard" size="20px"></td>
                               <td>户口所在地：</td>
                               <td><input type="text" value="${renshidengji.hukousuozaiidi}" name="renshidengji.hukousuozaiidi" size="10px"></td>
                               <td>政治面貌：</td>
                               <td><input type="text" value="${renshidengji.mianmao}" name="renshidengji.mianmao" size="10px"></td>
                           </tr>
                           <tr>
                               <td class="td1">毕业院校：</td>
                               <td><input type="text" value="${renshidengji.school}" name="renshidengji.school" size="20px"></td>
                               <td>专业：</td>
                               <td><input type="text" value="${renshidengji.zhuanye}" name="renshidengji.zhuanye" size="10px"></td>
                               <td>学历：</td>
                               <td><select name="renshidengji.xueli">
                                     <option value="">--请选择--</option>
                                     <option <c:if test="${renshidengji.xueli=='专科'}">selected</c:if> value="专科">专科</option>
                                     <option <c:if test="${renshidengji.xueli=='本科'}">selected</c:if> value="本科">本科</option>
                                     <option <c:if test="${renshidengji.xueli=='硕士'}">selected</c:if> value="硕士">硕士</option>
                                     <option <c:if test="${renshidengji.xueli=='博士'}">selected</c:if> value="博士">博士</option>
                               </select></td>
                           </tr>
                           <tr>
                               <td class="td1">薪酬标准：</td>
                               <td><select  name="xinChouId" style="width: 188px;height: 25px;text-align: center;">
											<option value="0">--请选择--</option>
											<c:forEach items="${lisXinchoubiaozhuns}" var="i">
												<option <c:if test="${i.id==xinChouId}">selected</c:if> value="${i.id}">${i.name}</option>
											</c:forEach>
									</select>
								</td>
                               <td>开户行:</td>
                               <td><input type="text" value="${renshidengji.kaihubank}" name="renshidengji.kaihubank" size="10px"></td>
                               <td>银行卡号：</td>
                               <td><input type="text" value="${renshidengji.banknum}" name="renshidengji.banknum" size="10px"></td>
                           </tr>
                           <tr>
                               <td class="td1">社保卡号：</td>
                               <td><input type="text" value="${renshidengji.shebao}" name="renshidengji.shebao" size="20px"></td>
                               <td>登记人:</td>
                               <td><input type="text" value="${renshidengji.dengjiren}" name="renshidengji.dengjiren" size="10px"></td>
                               <td>建档时间:</td>
                               <td><%@ include file="日历2.jsp"%></td>
                           </tr>
                           <tr>
                               <td class="td1">个人简历：</td>
                               <td colspan="5" class="area"><textarea name="renshidengji.gerenlvli" id="textarea" cols="80" rows="3">${renshidengji.gerenlvli}</textarea></td>
                               
                           </tr>
                           <tr>			
                               <td class="td1">家庭关系信息：</td>
                               <td colspan="5" class="area1"><textarea name="renshidengji.jiatingguanxi" id="textarea" cols="80" rows="3">${renshidengji.jiatingguanxi}</textarea></td>
                           </tr>
                           <tr>
                              <td class="td1">备注：</td>
                               <td colspan="5" class="area"><textarea name="renshidengji.beizhu" id="textarea" cols="80" rows="3">${renshidengji.beizhu}</textarea></td>
                           </tr>
                           <tr>
                               <td class="td1">简历附件：</td>
                              
                               <td style="width: 200px;"><input type="file" name="word">
                               	<a href="downloadDangAn.action?fileName=${renshidengji.fujian}">${renshidengji.wordname}</a>
                               	&nbsp;&nbsp;&nbsp;<c:if test="${not empty renshidengji.fujian}"><a id="del" href="javaScript:void(0)">删除</a></c:if>
                               </td>
                           </tr>
                        </table>
                        
                        <div style="width: 200px;margin: 10 auto;">
                           <span class="jiao"><input type="submit" value="保存"/></span>
                          <span class="jiao"><input type="button" value="申请复核"/></span>
                          <span class="jiao"><input type="button" value="返回"/></span>
                            
                        </div>
                    </form>
                    <div style="margin-left: 340px;margin-top: 10px;">
            			<h1 style="color: red;">${message}</h1>
            		</div>
             </div>
			
			
			</div>
		</div>
	</div>
  </body>
</html>
